Blockly.Blocks.multi_assign = {
  init: function () {
    this.appendValueInput('leftValue').setCheck(null)
    this.appendDummyInput().appendField('=')
    this.appendValueInput('rightValue').setCheck(null)
    this.setInputsInline(true)
    this.setOutput(true, null)
    this.setColour(230)
    this.setTooltip('')
    this.setHelpUrl('')
  }
}

Blockly.Python.multi_assign = function (block) {
  const leftValue = Blockly.Python.valueToCode(
    block,
    'leftValue',
    Blockly.Python.ORDER_NONE
  )
  const rightValue = Blockly.Python.valueToCode(
    block,
    'rightValue',
    Blockly.Python.ORDER_NONE
  )
  const code = leftValue + ' = ' + rightValue
  return [code, Blockly.Python.ORDER_NONE]
}
